<table width="100%" border="0" style="background:url(images/odbg_19.png) repeat; color:#FFF">
  <tr>
    <td style="background:url(images/bbc_08.jpg)">Orders Management
    </td>
  </tr>
  <tr>
    <td>
    <table width="100%" border="0">
        <tr>
          <td width="314"></td>
          <td width="123">&nbsp;</td>
          <td width="78">&nbsp;</td>
          <td width="57">&nbsp;</td>
          <td width="57">
          </a>
          </td>
        </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr style="background-color:#CCC">
        <td width="50" align="center">ID</td>
        <td width="430">Order Information.</td>
        <td width="200">Customer Information</td>
        <td>Shipping Information</td>
      </tr>
       {#foreach $T.orders as order}
       <tr id="orderrow-{$T.order.id}">
          <td align="center" valign="top">{$T.order.id}</td>
          <td valign="top">
          <a href="#" name="mguser-{$T.order.id}" value="{$T.order.id}">{$T.order.orderNo}</a><br>
       <table width="98%" border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td><span style="font-weight:bold; font-style:italic; font-size:13px"># ITEM</span></td>
            <td align="right" width="50"><span style="font-weight:bold; font-style:italic; font-size:13px">Units</span></td>
            <td align="right" width="70"><span style="font-weight:bold; font-style:italic; font-size:13px">$ PRICE</span></td>
          </tr>
        {#foreach $T.order.orderItems as it}
          <tr>
            <td><span style="font-style: italic; font-size:12px; padding-left:10px;">{$T.it.itemName}</span></td>
            <td align="right"><span style="font-style: italic; font-size:12px; padding-left:10px;">{$T.it.units}</span></td>
            <td align="right"><span style="font-style: italic; font-size:12px">{$T.it.totalPrice.toFixed(2)}</span></td>
          </tr>
        {#/for}
        </table>
          <table width="98%" border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td align="right"><span style="font-style: italic; font-size:12px">Subtotal:</span></td>
                <td style=" text-align:right; font-style: italic; font-size:12px">{$T.order.subtotal.toFixed(2)}</td>
              </tr>
              <tr>
                <td align="right"><span style="font-style: italic; font-size:12px">Service Charge:</span></td>
                <td align="right"><span style="font-style: italic; font-size:12px">{$T.order.serviceCharge.toFixed(2)}</span></td>
              </tr>
              <tr>
                <td align="right"><span style="font-style: italic; font-size:12px">Total:</span></td>
                <td align="right" style="border-top:dashed">
                    <span style="font-style: italic; font-size:14px">{$T.order.totalAmount.toFixed(2)}</span>
                </td>
              </tr>
          </table>
          
          </td>
          <td valign="top">
          {$T.order.customerName}<br />
          {$T.order.email}<br />
          </td>
          <td valign="top">
          Delivery at {$T.order.shippingDate}<br />
          Created on {$T.order.createDate}<br /><br />
          Delivery to:
          <br />
          {$T.order.shippingAddress}<br />
          {$T.order.postCode}<br />
          
          </td>
        </tr>
    	{#/for}
    </table>
    </td>
  </tr>
  <tr>
    <td><table width="100%" border="0">
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
